package com.lanou3g.ptp.achievement.mapper;

import com.lanou3g.ptp.entity.Summary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SummaryMapper {
    List<Summary> findAll();
    List<Summary> findAll1();

    Summary findSummaryById(Long id);

    List<Summary> findByKeyword(String keyword);

    void insert(Summary summary);

    void updateSummary(@Param("id") Long id, @Param("summary") Summary summary);

    void deleteSummaryId(Long id);

    void deleteSummaryIds(Long[] ids);

    List<Summary> getAllSummary(Long id);

    List<Summary> myFindAll(Long id);

    List<Summary> find(@Param("studentId") Long id,@Param("taskId")Long id1);

    Summary find1(@Param("studentId") Long id, @Param("taskId")Long id1, @Param("time1") Date time1, @Param("time2") Date time2);


    Summary findByTime (Long taskId, Long studentId);



}
